<?php
include('phpgraphlib/phpgraphlib.php');


//$datae=$_GET['data']; 

$graph = new PHPGraphLib(1200,450);

$datae = array("1 post" => $_GET['1'], "2 post" => $_GET['2'], "3 post" => $_GET['3'], "4 post" => $_GET['4'], 
"5 post" => $_GET['5'], "6 post" => $_GET['6'], "7 post" => $_GET['7'], "8 post" => $_GET['8'], "9 post" => $_GET['9'], 
"10 post" => $_GET['10'], "11 post" => $_GET['11'], "12 post" => $_GET['12'], "13 post" => $_GET['13'], 
"14 post" => $_GET['14'], "15 post" => $_GET['15'], "16 post" => $_GET['16'], "17 post" => $_GET['17'],
"18 post" => $_GET['18'], "19 post" => $_GET['19'], "20 post " => $_GET['20'], "21 post" => $_GET['21'],
"22 post" => $_GET['22'], "23 post" => $_GET['23'], "24 post" => $_GET['24'], "25 post" => $_GET['25'],       
"26 post" => $_GET['26'], "27 post" => $_GET['27'], "28 post" => $_GET['28'], "29 post" => $_GET['29'], "30 post" => $_GET['30']);


$graph->addData($datae);

$graph->setTitle('Interaction for last 30 posts');

$graph->setBars(false);
$graph->setLine(true);


$graph->setDataPoints(true);

$graph->setDataPointColor('blue');
$graph->setDataValues(true);

$graph->setDataValueColor('blue');

//$graph->setGoalLine(.0025);
//$graph->setGoalLineColor('red');
$graph->createGraph();

?>
